using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;

namespace AbpStudy.Entity
{
	/// <summary>
	/// 作者 
	/// </summary>
	public class Author : AuditedAggregateRoot<Guid>
	{
		public string Name { get; set; }
		public List<Book> Books { get; set; }

        protected Author()
        {
        }

        public Author(
            Guid id,
            string name,
            List<Book> books
        ) : base(id)
        {
            Name = name;
            Books = books;
        }
	}
}
